<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>图书列表页面</title>
</head>
<body>
    <h2>图书列表页面</h2>
     {{ books }}
    <hr>
    <table>
    {% for book in books %}
        <tr>
        <td><a href="/bookteat/detail/{{book.id}}">{{book.id}}</a></td>
        <td>{{book.title}}</td>
        <td>{{book.pub_date}}</td>
            <td><a href="{% url 'bookdelbook' book.id %}">删除</a></td>
        </tr>
    {% endfor %}
    </table>
</body>
</html>